package sprint1;

import java.util.ArrayList;

/**
 * @author Marco Schultewolter
 * @author Yoeri Goldewijk
 * Afgemaakt @  10-12-2009
 */
public class Item {

	protected String name;
	protected String description;
	protected double value;				// prijs nodig voor NPC
	private static ArrayList<Item> items;
	public static Item key1 = new Key("key1", "Key nodig voor eerste teleporter", 20., 1);

	public Item(String name, String description, double value) {
		this.name = name;
		this.description = description;
		this.value = value;
	}

	//override in inherited classes
	public void useItem() {
		System.out.println(name + "; " + description + "; " + value);
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public double getValue() {
		return value;
	}
	
	public static ArrayList<Item> addItem() {
		items = new ArrayList<Item>();
		items.add(key1);
		return items;
	}

	public String toString() {
		return "Naam: " + name + "; Beschrijving: " + description + "; Waarde: " + value;
	}
}
